Skip to content

Fix plugin-object and chart component display in fumadocs#165

Merged
hotlong merged 5 commits intomainfrom
copilot/fix-object-chart-components
Jan 23, 2026
Merged

Fix plugin-object and chart component display in fumadocs#165
hotlong merged 5 commits intomainfrom
copilot/fix-object-chart-components

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Jan 23, 2026

Object and chart components were not rendering in the fumadocs site due to a disabled plugin import and incorrect component type references.

Changes

apps/site/app/components/InteractiveDemo.tsx

  • Uncommented import('@object-ui/plugin-object') - was erroneously disabled with "missing dependency" note despite dependency existing

docs/plugins/plugin-charts.mdx

  • Fixed component types: line-chartchart with chartType: 'line'
  • Replaced pie-chart example with area-chart (pie chart not implemented)
  • Updated schema examples to use correct series and config properties:
// Before (incorrect)
{
  type: "line-chart",
  data: [...],
  lines: [{ dataKey: "revenue", stroke: "#8884d8" }],
  xAxisKey: "month"
}

// After (correct)
{
  type: "chart",
  chartType: "line",
  data: [...],
  series: [{ dataKey: "revenue" }],
  config: { revenue: { label: "Revenue", color: "#8884d8" } },
  xAxisKey: "month"
}
  • Clarified two chart APIs: bar-chart (simple) vs chart (advanced with multiple series)

Screenshots

Object components now rendering:
Plugin Object

Chart components with corrected documentation:
Plugin Charts

Original prompt

fumadocss 中对象相关组件和图表相关组件不能正常显示


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@vercel
Copy link
Copy Markdown

vercel Bot commented Jan 23, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
objectui-docs Error Error Jan 23, 2026 1:52pm
objectui-site Ready Ready Preview, Comment Jan 23, 2026 1:52pm

Request Review

@vercel vercel Bot temporarily deployed to Preview – objectui-docs January 23, 2026 12:16 Inactive
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
@vercel vercel Bot temporarily deployed to Preview – objectui-docs January 23, 2026 12:26 Inactive
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Jan 23, 2026

Deployment failed with the following error:

Resource is limited - try again in 37 minutes (more than 100, code: "api-deployments-free-per-day").

Learn More: https://vercel.com/xuyushun441-sys-projects?upgradeToPro=build-rate-limit

Copilot AI changed the title [WIP] Fix display issues with object and chart components in fumadocss Fix plugin-object and chart component display in fumadocs Jan 23, 2026
Copilot AI requested a review from hotlong January 23, 2026 12:30
@hotlong hotlong marked this pull request as ready for review January 23, 2026 13:49
Copilot AI review requested due to automatic review settings January 23, 2026 13:49
@vercel
Copy link
Copy Markdown

vercel Bot commented Jan 23, 2026

Deployment failed with the following error:

Resource is limited - try again in 2 hours (more than 100, code: "api-deployments-free-per-day").

Learn More: https://vercel.com/xuyushun441-sys-projects?upgradeToPro=build-rate-limit

@github-actions github-actions Bot added the apps label Jan 23, 2026
@hotlong hotlong merged commit c9cbc99 into main Jan 23, 2026
11 of 13 checks passed
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR restores rendering of object-based components in the Fumadocs site and corrects chart plugin documentation to match the current @object-ui/plugin-charts API.

Changes:

  • Re-enabled lazy loading of @object-ui/plugin-object in the docs app so object components are available to SchemaRenderer.
  • Updated plugin-charts documentation examples to use the advanced type: 'chart' + chartType API instead of deprecated/incorrect *-chart types, and replaced the unsupported pie chart example with an area chart.
  • Clarified the distinction between the simple bar-chart component and the advanced chart component, including multi-series configuration with series and config.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
apps/site/app/components/InteractiveDemo.tsx Re-enabled lazy loading of @object-ui/plugin-object alongside other plugins so object schemas render correctly in interactive demos.
docs/plugins/plugin-charts.mdx Aligned all examples and narrative with the current @object-ui/plugin-charts API (bar-chart for simple usage, chart + chartType/series/config for advanced charts) and removed references to the unimplemented pie chart.

@github-actions
Copy link
Copy Markdown
Contributor

✅ All checks passed!

  • ✅ Type check passed
  • ✅ Tests passed
  • ✅ Lint check completed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants